import Worker from 'worker-loader!@/workers/getMenuChildren';

export function random(min,max){
    if(max == null){
        max = min;
        min = 0;
    }
    return min+ Math.floor(Math.random()*(max-min+1));
}
/**
 * 获取菜单的子菜单
 * @param {*} name 菜单的name
 */
export function getMenuChildren(name,callback){
    const worker=new Worker();
    worker.postMessage(name);
    worker.onmessage(e=>{
    });
}
